
TEMPLATE = app
TARGET = ElectricityApp

VERSION = 0.0.1

QT += gui network declarative

HEADERS += src/serversocket.h

SOURCES +=  src/main.cpp \
            src/serversocket.cpp

qmlfiles.sources = qml
DEPLOYMENT += qmlfiles

symbian: {
    # Because landscape orientation lock
    LIBS += -lcone -leikcore -lavkon
    TARGET.UID3 = 0xEF642F1F
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000

    # Self-signing capabilities
    TARGET.CAPABILITY += NetworkServices \
        ReadUserData \
        WriteUserData \
        LocalServices \
        UserEnvironment
}

OTHER_FILES += \
    qtc_packaging/debian_fremantle/rules \
    qtc_packaging/debian_fremantle/README \
    qtc_packaging/debian_fremantle/copyright \
    qtc_packaging/debian_fremantle/control \
    qtc_packaging/debian_fremantle/compat \
    qtc_packaging/debian_fremantle/changelog


maemo5 {
    TARGET = electricityapp
    target.path = /opt/usr/bin

    desktop.path = /usr/share/applications/hildon
    desktop.files += qtc_packaging/debian_fremantle/$${TARGET}.desktop

    qmlFiles.path = /opt/electricityapp/qml/
    qmlFiles.files += qml/*

    INSTALLS += target desktop qmlFiles

}
